package homework2;

public class StringHandlerDemo {
    public static void main(String[] args) {
         useStringHandler(new RandomNumHandler() {
             @Override
             public void printMessage(String a) {
                 System.out.println(a);
             }
         });
         useStringHandler(a -> System.out.println(a) );


    }
    public static void useStringHandler(RandomNumHandler ran){
        ran.printMessage("s");
    }
}
